<template>
    <div class="form-block-inner">
        <Form :model="formItem" label-position="top" ref="baseForm">
            <div class="title-style">影印材料</div>
            <common-files-upload :show-files-list="fileList" @result="resultAction"></common-files-upload>
            <common-save-btn v-if="false"></common-save-btn>
        </Form>
    </div>
</template>

<script>
import CommonSaveBtn from '@/components/common-save-btn/index'
import CommonFilesUpload from '@/components/comon-files-upload/index'

export default {
  name: 'DangTuanInfo',
  components: { CommonFilesUpload, CommonSaveBtn },
  props: {
    formItem: {
      type: Object,
      default: () => {
        return {}
      }
    }
  },
  data () {
    return {
      fileList: [
        {
          name: '中国共产党入党志愿书、入党申请书、转正申请书、培养教育考察材料(6-1-1-1 至 6-1-1-100)',
          value: '',
          key: { a: 6, b: 1 },
          desc: '中国共产党入党志展书、入党申请书、转正申请书、培养教育考材料;整党工作、党员重新登记工作中民主评议党员的组织意见,党员登记表,党支部不予登记或者缓期登记的决定、上级组织意见;不合格党员被劝退或除名的组织审批意见及主要侬据树料;取消预备党员资格的材料,退党、自行脱党材料;恢复组织生活(党籍)的有关审批材料\n'
        },
        { name: '中国共产主义青年团入团志愿书、入团申请书(6-2-1-1 至 6-2-1-100)', value: '', key: { a: 6, b: 2 } },
        { name: '加入或者退出民主党派等材料(6-3-1-1 至 6-3-1-100)', value: '', key: { a: 6, b: 3 } }
      ]
    }
  },
  watch: {
    formItem (data) {
      this.fileList[0].value = data.six_one
      this.fileList[1].value = data.six_two
      this.fileList[2].value = data.six_three
    }

  },
  methods: {
    resultAction (data) {
      this.formItem.six_one = data[0].value
      this.formItem.six_two = data[1].value
      this.formItem.six_three = data[2].value
    }
  }
}
</script>

<style scoped>

</style>
